package com.example.xinyun.db;

import java.io.Serializable;
import java.util.Objects;
public class TbFourm implements Serializable {
    private Integer id;
    private Integer tzid;
    private String user;
    private String text;
    private String time;
    private Integer dianzan;
    private Integer liulan;
    private String pinglun;
    private static final long serialVersionUID = 1L;
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbFourm tbFourm = (TbFourm) o;
        return Objects.equals(id, tbFourm.id) &&
                Objects.equals(tzid, tbFourm.tzid) &&
                Objects.equals(user, tbFourm.user) &&
                Objects.equals(text, tbFourm.text) &&
                Objects.equals(time, tbFourm.time) &&
                Objects.equals(dianzan, tbFourm.dianzan) &&
                Objects.equals(liulan, tbFourm.liulan) &&
                Objects.equals(pinglun, tbFourm.pinglun);
    }
    @Override
    public int hashCode() {
        return Objects.hash(id, tzid, user, text, time, dianzan, liulan, pinglun);
    }
    @Override
    public String toString() {
        return "TbFourm{" +
                "id=" + id +
                ", tzid=" + tzid +
                ", user='" + user + '\'' +
                ", text='" + text + '\'' +
                ", time='" + time + '\'' +
                ", dianzan=" + dianzan +
                ", liulan=" + liulan +
                ", pinglun='" + pinglun + '\'' +
                '}';
    }
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getTzid() {
        return tzid;
    }
    public void setTzid(Integer tzid) {
        this.tzid = tzid;
    }
    public String getUser() {
        return user;
    }
    public void setUser(String user) {
        this.user = user;
    }
    public String getText() {
        return text;
    }
    public void setText(String text) {
        this.text = text;
    }
    public String getTime() {
        return time;
    }
    public void setTime(String time) {
        this.time = time;
    }
    public Integer getDianzan() {
        return dianzan;
    }
    public void setDianzan(Integer dianzan) {
        this.dianzan = dianzan;
    }
    public Integer getLiulan() {
        return liulan;
    }
    public void setLiulan(Integer liulan) {
        this.liulan = liulan;
    }
    public String getPinglun() {
        return pinglun;
    }
    public void setPinglun(String pinglun) {
        this.pinglun = pinglun;
    }
    public static long getSerialVersionUID() {
        return serialVersionUID;
    }
}
